<template>
<div>
    <el-pagination  @current-change="handleCurrentChange" :current-page.sync="userinfo.pageNumber" :page-size="userinfo.pageSize" layout="total, prev, pager, next, jumper" :total="userinfo.totalRow">
    </el-pagination>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
  computed: {
    ...mapGetters([
      'userinfo'
    ])
  },
  methods: {
    handleCurrentChange(val) {
      this.$store.dispatch('changePage', val).then(() => {
      })
    }
  },
  data() {
    return {
      // currentPage3: 1
    }
  }
}
</script>
<style>

</style>

